package business.export

import business.coding.CenterWeightAndWords

class SaveCodes {

	static void saveCode(String corp, CenterWeightAndWords cenW) {
		String p = cenW.getCenter().getPROVINCIA();
		String i = cenW.getCenter().getINSTIT();
		String o = cenW.getCenter().getORGANISMO();
		String d = cenW.getCenter().getDPTO();
		String s = cenW.getCenter().getSECTOR();
		
		int we = cenW.getWeight();
		String info = cenW.toString();
		String insert = "INSERT INTO codedCorp VALUES ('${corp}','${p}','${i}','${o}','${d}', '${s}',${we},'${info}')"
		business.database.Database.getInstance().sqlnewcorps.execute insert
	}
}
